[IA64] Fix warnings
authorAlex Williamson <alex.williamson@hp.com>
Mon, 24 Mar 2008 19:10:05 +0000 (13:10 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 24 Mar 2008 19:10:05 +0000 (13:10 -0600)
Signed-off-by: Tristan Gingold <tgingold@free.fr>
xen/arch/ia64/vmx/vmx_init.c

index 955d29bdd2cfa3bf3f7b9a3f5616ea69000c7e5a..6a1c014c436f3ab4bdf29627a901492b0808e9f5 100644 (file)
@@ -308,11 +308,9 @@ vmx_create_vp(struct vcpu *v)
 void
 vmx_save_state(struct vcpu *v)
 {
-       u64 status;
-
        BUG_ON(v != current);
        
-       ia64_call_vsa(PAL_VPS_SAVE, v->arch.privregs, 0, 0, 0, 0, 0, 0);
+       ia64_call_vsa(PAL_VPS_SAVE, (u64)v->arch.privregs, 0, 0, 0, 0, 0, 0);
 
        /* Need to save KR when domain switch, though HV itself doesn;t
         * use them.
@@ -336,7 +334,7 @@ vmx_load_state(struct vcpu *v)
        vmx_load_all_rr(v);
 
        /* vmx_load_all_rr() pins down v->arch.privregs with both dtr/itr*/
-       ia64_call_vsa(PAL_VPS_RESTORE, v->arch.privregs, 0, 0, 0, 0, 0, 0);
+       ia64_call_vsa(PAL_VPS_RESTORE, (u64)v->arch.privregs, 0, 0, 0, 0, 0, 0);
 
        ia64_set_kr(0, v->arch.arch_vmx.vkr[0]);
        ia64_set_kr(1, v->arch.arch_vmx.vkr[1]);